import request from '@/utils/request'

// 查询视频观看记录列表
export function listUserVideoViews(query) {
  return request({
    url: '/education/UserVideoViews/list',
    method: 'get',
    params: query
  })
}

// 查询视频观看记录详细
export function getUserVideoViews(id) {
  return request({
    url: '/education/UserVideoViews/' + id,
    method: 'get'
  })
}

// 新增视频观看记录
export function addUserVideoViews(data) {
  return request({
    url: '/education/UserVideoViews',
    method: 'post',
    data: data
  })
}

// 修改视频观看记录
export function updateUserVideoViews(data) {
  return request({
    url: '/education/UserVideoViews',
    method: 'put',
    data: data
  })
}

// 删除视频观看记录
export function delUserVideoViews(id) {
  return request({
    url: '/education/UserVideoViews/' + id,
    method: 'delete'
  })
}
